Skip to main content

GetObjectMeta

Description

GetObjectMeta is used to obtain the basic meta information of an object under a bucket, including ETag, Size (file size) and LastModified of the object, and does not return its contents.

Request Method

POST

Request Path

/apsara/route/OneRouter/GetObjectMeta

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
ETagBODYstringNoNo sample value for this parameter.ETag (entity tag) will be created when Object is generated. ETag is used to mark the content of an Object. for objects created PutObject requests, the ETag value is the MD5 value of its contents; For objects created in other ways, the ETag value is the UUID of its contents. The ETag value can be used to check whether the object content has changed. We do not recommend that you use ETag to verify data integrity as MD5 for the object content. default value: none
regionIdBODYstringYesNo sample value for this parameter.region id
Last-ModifiedBODYstringNoNo sample value for this parameter.the date when Object was last modified, in the format of GMT time specified in HTTP 1.1 protocol.
Content-LengthBODYstringNoNo sample value for this parameter.the file size of the object.
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}